/**
 * 
 */
package sakila.dto.film;

import java.sql.Date;

/**
 * The Class ActorDTO list out all informations for an actor.
 */
public class ActorDTO extends BaseDTO
{

	/** The actor's first name. */
	private String firstName;

	/** The actor's last name. */
	private String lastName;

	/**
	 * Instantiates a new actorDTO.
	 */
	public ActorDTO()
	{
		super();
	}

	/**
	 * Instantiates a new actorDTO.
	 * 
	 * @param actorid the actor id
	 * @param firstName the first name
	 * @param lastName the last name
	 * @param lastUpdate the last update
	 */
	public ActorDTO(final int actorid, final String firstName, final String lastName,
	        final Date lastUpdate)
	{
		super(actorid, firstName + " " + lastName, lastUpdate);
		this.firstName = firstName;
		this.lastName = lastName;
	}

	/**
	 * Gets the first name.
	 * 
	 * @return the first name
	 */
	public String getFirstName()
	{
		return this.firstName;
	}

	/**
	 * Gets the last name.
	 * 
	 * @return the last name
	 */
	public String getLastName()
	{
		return this.lastName;
	}

	/**
	 * Sets the first name.
	 * 
	 * @param firstName the new first name
	 */
	public void setFirstName(String firstName)
	{
		this.firstName = firstName;
		this.setName(firstName + " " + this.getLastName());
	}

	/**
	 * Sets the lastName
	 * 
	 * @param lastName the lastName to set
	 */
	public void setLastName(String lastName)
	{
		this.lastName = lastName;
		this.setName(this.getFirstName() + " " + lastName);
	}
}
